package com.victor9ac.mashup.api;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class Images implements Iterable<Image> {



	private List<Image> imgs;
	
	private String keywordLink;
	
	
	public Images() {
		imgs = new ArrayList<Image>();
	}
	
	public Iterator<Image> iterator() {
		return imgs.iterator();
	}
	
	
	public int size(){
		return imgs.size();
	}
	
	public void subList(int n){
		imgs.subList(0, n);
	}
	
	public void add (Image image){
		imgs.add(image);
	}
	
	public String toString(){
		String str ="";
		for (Image img : imgs) {
			str+=img.toString()+"\n"; 
		}
		return str;
	}

	public List<Image> getImgs() {
		return imgs;
	}

	public void setImgs(List<Image> imgs) {
		this.imgs = imgs;
	}

	public String getKeywordLink() {
		return keywordLink;
	}

	public void setKeywordLink(String keywordLink) {
		this.keywordLink = keywordLink;
	}


}
